﻿using PowerHub.MES.DTO.ProcessRoute.DTO;
using PowerHub.MES.DTO.ProcessRoute.QueryDto;
using PowerHub.MES.Entities.ProcessRoute;
using PowerHub.MES.ReturnEntity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PowerHub.MES.IServices.IProcessRoute
{
    /// <summary>
    /// 工序接口层
    /// </summary>
    public interface IProcessRoute_ProcessServices
    {
        /// <summary>
        /// 获取工序列表
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationPageResult<List<ProcessRoute_Process>>> GetProcessRoute_ProcessPageListAsync(QueryProcessRoute_ProcessDTO query);


        /// <summary>
        /// 添加工序
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<bool>> CreateProcessRoute_ProcessAsync(ProcessRoute_ProcessDTO query);

        /// <summary>
        /// 批量删除工序
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<bool>> DeletionProcessRoute_ProcessAsync(List<string>? ids);

        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        public Task<OperationResult<bool>> UpdateProcessRoute_ProcessAsync(ProcessRoute_ProcessDTO query);
    }
}
